﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PomodoroSuite.FW.Comun.Atributos.Relaciones
{
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public sealed class MuchosAMuchosAttribute : Attribute
    {
        public MuchosAMuchosAttribute(string tablaIntermedia)
        {
            TablaIntermedia = tablaIntermedia;
        }

        public string TablaIntermedia
        {
            get;
            private set;
        }
    }

    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public sealed class UnoAMuchosAttribute : Attribute
    {
        public UnoAMuchosAttribute(string llave)
        {
            LLave = llave;
        }

        public string LLave
        {
            get;
            private set;
        }
    }

    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public sealed class MuchosAUnoAttribute : Attribute
    {
        public MuchosAUnoAttribute(string llaveForanea)
        {
            LlaveForanea = llaveForanea;
        }

        public string LlaveForanea
        {
            get;
            private set;
        }
    }
}
